//
//  UserProfileVM.swift
//  Tiktok
//
//  Created by xmd on 11/1/20.
//

import Foundation
import SwiftUI

class UserProfileVM: ObservableObject {
    @Published var avatarImage: UIImage?
    @Published var backgroundImage: UIImage?
    
    var profile = userProfile
    
    var avatarUrl: String {
        userProfile.avatarUrl
    }
    
    var backgroundUrl: String {
        userProfile.backgroundUrl
    }
    
    var userDesc: String {
        userProfile.userDesc
    }
    
    var nickname: String {
        userProfile.nickname
    }
    
    var age: String {
        "\(userProfile.age)岁"
    }
    
    var location: String {
        userProfile.location
    }
    
    var university: String {
        userProfile.university
    }
    
    var likes: String {
        userProfile.likes
    }
    
    var fans: String {
        userProfile.fans
    }
    
    var following: String {
        userProfile.following
    }
}
